<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>我的</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="../assets/css/amazeui.min.css?v=2.9">
    <link rel="stylesheet" href="../assets/css/style.css?v=2.3">
    <link rel="stylesheet" href="../assets/css/index.css?v=2.3">
    <link rel="stylesheet" href="../assets/css/extend.css?v=2.3">
    <link rel="stylesheet" href="../assets/css/icons.css?v=2.3">
</head>
<body class="bg-gray">
<div id="myinfo" v-cloak>
<!--<header data-am-widget="header" class="am-header am-header-default am-header-fixed ">

    <div class="am-header-left am-header-nav">
        <a onclick="history.go(-1)" class="widht-10s">
            <i class="icon_8"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        我的
    </h1>


</header>-->
<section class="" id="amz-main" data-tag="css-nav">

    <div class="tixian-top-me-max  font-color-white prelative" >
        <div class="am-padding-top-lg">
            <div class="am-benj">
                <div class="bg-white font-14 am-padding-left-sm am-padding-top-sm am-padding-bottom-sm  prelative am-listborder  overflow-hidden">
                    <div class="box ">
                        <div class="am-me-w80-square"><img v-bind:src="staffInfo.head_icon" class="am-img-responsive" v-on:click="show(staffInfo.head_icon)"></div>
                        <div class="box-1">
                            <div class="box-1 am-margin-left-sm ">
                                <div class="font-color-2 am-margin-top-xs font-18">{{staffInfo.name}}</div>
                                <div class="font-color-2 font-14">{{staffInfo.station}}</div>
                                <div class="font-color-1 font-14">{{staffInfo.department_name}}</div>
                            </div>
                        </div>
                        <div class="am-margin-right-sm am-padding-top-xs  am-revise-bg" v-on:click="edit">
                        <i class="am-icon-pencil am-padding-top-3"></i>
                        </div>
                    </div>
                    <div class=" am-me-if">
                        <div class="am-u-xs-12 am-u-sm-12 font-color-1 ma-me-ifcont"><i class="ico-app"></i><span class="font-12">手机号码：{{staffInfo.phone}}</span></div>
                        <div class="am-u-xs-12 am-u-sm-12 font-color-1 ma-me-ifcont"><i class="ico-mail"></i><span class="font-12">邮箱：{{staffInfo.mail}}</span></div>
                    </div>
                </div>

            </div>

        </div>
    </div>

    <div class=" font-color-2 my-menu-lists bg-white  am-padding-left-sm">
        <div class="box   border-bottom" v-on:click="mycard">
            <div class="width-25px am-margin-right-sm ">
                <i class="my-icon my-icon-me1"></i>
            </div>
            <div class="box-1     " >
                <span class="prelative">我的名片</span>
            </div>

        </div>
        </div>
    <div class=" font-color-2 my-menu-lists bg-white am-margin-top-sm am-padding-left-sm">

        <div class="box   border-bottom" v-on:click="myproduct">
            <div class="width-25px am-margin-right-sm ">
                <i class="my-icon my-icon-me2"></i>
            </div>
            <div class="box-1     " >
                <span class="prelative">我的产品</span>
            </div>

        </div>
        <div class="box   border-bottom" v-on:click="myCircle">
            <div class="width-25px am-margin-right-sm ">
                <i class="my-icon my-icon-me3"></i>
            </div>
            <div class="box-1     " >
                <span class="prelative">我的朋友圈</span>
            </div>

        </div>
        <div class="box   border-bottom" v-on:click="myreport">
            <div class="width-25px am-margin-right-sm ">
                <i class="my-icon my-icon-me5"></i>
            </div>
            <div class="box-1     " >
                <span class="prelative">我的报表</span>
            </div>
        </div>
        <div class="box   border-bottom" v-on:click="myOrder">
            <div class="width-25px am-margin-right-sm ">
                <i class="my-icon my-icon-me5"></i>
            </div>
            <div class="box-1     " >
                <span class="prelative">客户订单</span>
            </div>
        </div>
        <div class="box   border-bottom" v-on:click="sendCircle">
            <div class="width-25px am-margin-right-sm ">
                <i class="my-icon my-icon-me6"></i>
            </div>
            <div class="box-1     " >
                <span class="prelative">发布朋友圈</span>
            </div>
        </div>

    </div>





</section>


<footer data-am-widget="navbar" class="am-navbar am-cf am-navbar-default ">
    <ul class="am-navbar-nav am-cf am-avg-sm-4">
        <li v-on:click="aiRadar()">
            <a  class="">
                <img src="../assets/images/icons/radar.png"
                     alt="首页"/>
                <span class="am-navbar-label">雷达</span>
            </a>
        </li>
        <li >
            <a v-on:click="message()" class="">
                <img src="../assets/images/icons/news.png"
                     alt="商品"/>
                <span class="am-navbar-label">消息</span>
            </a>
        </li>

        <li v-on:click="custom()">
            <a  class="">
                <img src="../assets/images/icons/user.png"
                     alt="推广助手"/>
                <span class="am-navbar-label">客户</span>
            </a>
        </li>
        <li>
            <a href="javascript:void(0)" onclick="location.reload()" class="selected">
                <img src="../assets/images/icons/me-on.png"
                     alt="个人中心"/>
                <span class="am-navbar-label">我的</span>
            </a>
        </li>
    </ul>
</footer>
</div>



<script src="../assets/js/jquery.min.js"></script>
<script src="../assets/js/amazeui.min.js"></script>
<script src="../assets/js/vue2.2.2.min.js"></script>
<script src="../assets/common.js"></script>
<script type='text/javascript' src='../assets/js/webim/js/webim.config.js'></script>
<script type='text/javascript' src='../assets/js/webim/js/strophe-1.2.8.js'></script>
<script type='text/javascript' src='../assets/js/webim/js/websdk-1.4.13.js'></script>
<script type='text/javascript' src="../assets/js/webimListen.js"></script>
<link rel="stylesheet" href="../assets/js/layui/css/layui.css">
<script type='text/javascript' src='../assets/js/layui/layui.js'></script>
<script>
    $(".tab-container .tab-items").on("click",function () {
        $(".tab-container .tab-items").removeClass("cur");
        $(this).addClass("cur");
    })
</script>

<script>
    var sessionid=getQueryString("sessionid");
    var mask;
    layui.use('layer', function(){
        var layer = layui.layer;
    });
    $(function(){

        setTimeout(function(){
            mask = layer.msg('正在加载', {icon: 16});
            $.ajax({
                type: 'get',
                url:baseUrl+'v3.0/card',
                contentType:'application/json',
                headers: {'session_id': sessionid},
                success: function (data) {
                    layer.close(mask);
                    //注册vue
                    new Vue({
                        el:"#myinfo",
                        data:{
                            staffInfo:data
                        },
                        methods:{
                            edit:function(){
                                window.location.href='编缉.html?sessionid='+sessionid
                            },
                            show:function(url){
                                window.location.href=url
                            },
                            mycard:function(){
                                window.location.href='我的名片.html?sessionid='+sessionid
                            },
                            message:function(){
                                window.location.href = '消息.html?sessionid=' + sessionid
                            },
                            myproduct:function(){

                                $.ajax({
                                    type: 'POST',
                                    url: baseUrl + 'v3.0/staffProductcount',
                                    contentType: 'application/json',
                                    headers: {'session_id': sessionid},
                                    success:function(count){
                                        if (count==0){
                                            window.location.href="空.html"
                                        }else
                                        {
                                            window.location.href='我的产品.html?sessionid='+sessionid
                                        }
                                    }
                                })


                            },
                            myCircle:function(){
                                $.ajax({
                                    type: 'POST',
                                    url: baseUrl + 'v3.0/Circle/pageCount',
                                    contentType: 'application/json',
                                    headers: {'session_id': sessionid},
                                    success:function(count){
                                        if (count==0){
                                            window.location.href="空.html"
                                        }else
                                        {
                                            window.location.href='我的朋友圈.html?sessionid='+sessionid
                                        }
                                    }
                                })

                            },
                            myreport:function(){
                                window.location.href='我的报表.html?sessionid='+sessionid
                            },
                            myOrder:function(){
                                $.ajax({
                                    type: 'POST',
                                    url: baseUrl+'v3.0/Circle/OrderCount',
                                    contentType: 'application/json',
                                    headers: {'session_id': sessionid},
                                    success:function(count){
                                        if(count==0){
                                            window.location.href="空.html"
                                        }else{
                                            window.location.href='订单列表.html?sessionid='+sessionid
                                        }
                                    }
                                })

                            },
                            sendCircle:function(){
                                window.location.href='发布朋友圈.html?sessionid='+sessionid
                            },
                            aiRadar:function(){
                                window.location.href='../aiRadar.html?sessionid='+sessionid
                            },
                            custom:function(){
                                window.location.href = "客户.html?sessionid="+sessionid;
                            }
                        }


                    })
                }
            });
        },200)
        //获取用户信息

    })
</script>

</body>
</html>